<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery.min.js"></script>
</head>
<body>
    <div>
        <span>我是内容</span>
    </div>
    <input type="text" value="请输入内容">
    <script>
        //1.普通元素内容 html()(相当于原生innerHTML)
        /*用法：
            html()   获取元素的内容
            html("内容")  设置元素的内容*/
            console.log($("div").html());
            console.log($("div").html("123"));

            //2.获取设置元素文本内容 text()
            console.log($("div").text());
            console.log($("div").text("5456"));

            //3.获取设置表单值 val()
            console.log($("input").val());
            console.log($("input").val("快输入内容"));
    </script>
</body>
</html>